export interface ILoginParams {
  username: string
  password: string
}
export interface IData<T = any> {
  code: number
  msg: string
  data: T
}

export interface ILoginData {
  id: number
  username: string
  token: string
}
export interface IListType<T = any> {
  count: number
  data: T
}
export interface IUser {
  id: number
  username: string
  password: string
  phone: string
  role: string
  extraMenu: string
  department: string
  isDelete: number
  enable: number
  create_time: string
}
export interface IDepartment {
  id: number
  name: string
  parentId?: number
  created: string
  leader: string
}
export interface IRole {
  id: number
  name: string
  menu: string
  children: string
  intro: string
}

export interface IMenu {
  id: number
  name: string
  url: string
  icon: string
  sort: number
  type: number
  children?: any
}
